package com.bw.hxc.controller;


import com.bw.hxc.entity.Result;
import com.bw.hxc.entity.Station;
import com.bw.hxc.service.IStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 黄旭超
 * @since 2022-05-26
 */
@RestController
@RequestMapping("/station")
public class StationController {
    @Autowired
    IStationService stationService;

    @RequestMapping("list")
    public List<Station> list(){
        List<Station> list = stationService.list();
        return list;
    }

}
